{extend name="./template/default/pc/pub/base.html" /}
{block name="seo"}
<title>漫画大全-{$site_name}</title>
<meta name="description" content="{$site_name}为大家带来最新漫画大全，这里有超多漫画资源，无论是韩国漫画，耽美漫画，还是恐怖漫画，总有一个让你酣畅淋漓">
{/block}
{block name="content"}
<div class="container">
    <div class="shutter">
        <div class="shutter-img">
            {volist name="banners" id="vo"}
            <a href="{if $end_point == 'id'}
              /pc/{$book_ctrl}/{$vo.book_id}
              {else /}
              /pc/{$book_ctrl}/{$vo.book.unique_id}
              {/if}"
               data-shutter-title="{$vo.title}">
                <img src="{$vo.pic_name}" alt="{$vo.title}">
            </a>
            {/volist}
        </div>
        <ul class="shutter-btn">
            <li class="prev"></li>
            <li class="next"></li>
        </ul>
        <div class="shutter-desc">
            {volist name="banners" id="vo"}
            <p>{$vo.title}</p>
            {/volist}
        </div>
    </div>
</div>

<div class="full-class">
    <div class="container">
        <ul class="list">
            {volist name="tags" id="vo"}
            <li><a href="/pc/{$booklist_act}/{$vo.tag_name}">{$vo.tag_name}</a></li>
            {/volist}
        </ul>
        <a href="/pc/{$booklist_act}/" class="full-class-btn">全部分类</a>
    </div>
</div>

<script>
    $(function () {
        $('.shutter').shutter({
            shutterW: 1000, // 容器宽度
            shutterH: 358, // 容器高度
            isAutoPlay: true, // 是否自动播放
            playInterval: 3000, // 自动播放时间
            curDisplay: 3, // 当前显示页
            fullPage: false // 是否全屏展示
        });
    });
</script>
<link rel="stylesheet" type="text/css" href="/static/css/lunbo.css">
<script src="/static/js/shutter.js"></script>
<script src="/static/js/velocity.js"></script>

<div class="index-title">
    <div class="container">
        <img src="http://css99tel.cdndm5.com/v201910141105/blue/images/sd/index-title-7.png" class="index-title-logo">
        <h2>上升最快</h2>
        <a href="/pc/{$rank_ctrl}" class="index-title-more">更多</a>
    </div>
</div>

<div class="index-manga">
    <div class="container overflow-Show">
        <ul class="mh-list col7">
            {volist name="newest" id="vo" length="7"}
            <li>
                <div class="mh-item">
                    <a href="/pc/{$book_ctrl}/{$vo.param}">
                        <p class="mh-cover " style="background-image: url({$vo.cover_url})"></p>
                    </a>

                    <div class="mh-item-detali">
                        <h2 class="title">
                            <a href="/pc/{$book_ctrl}/{$vo.param}">
                                {$vo.book_name}
                            </a>
                        </h2>
                        <p class="zl"><span>评分:</span><span class="mh-star-line star-4"></span></p>
                        <p class="chapter">
                            {$vo.summary}
                        </p>
                    </div>
                </div>
            </li>
            {/volist}
        </ul>
    </div>
</div>

<div class="index-title">
    <div class="container">
        <img src="/static/images/index-title-1.png" class="index-title-logo">
        <h2>热门漫画</h2>
        <a href="/pc/{$rank_ctrl}" class="index-title-more">更多</a>
    </div>
</div>
<div class="index-original">
    <div class="container">
        <div class="swiper-container">
            <div class="swiper-wrapper">
                <div class="swiper-slide swiper-slide-duplicate">
                    <ul class="index-original-list">
                        {volist name="hot" id="vo" offset="0" length="7"}
                        <li>
                            <div class="cover">
                                <a href="/pc/{$book_ctrl}/{$vo.param}">
                                    <p class="mh-cover " style="background-image: url({$vo.cover_url})"></p>
                                </a>
                                </a>
                            </div>
                            <div class="info">
                                <p class="title">
                                    <a href="/pc/{$book_ctrl}/{$vo.param}">
                                        {$vo.book_name}
                                    </a>

                                </p>
                                <div class="star"><span class="active"></span>
                                    <span class="active"></span>
                                    <span class="active"></span>
                                    <span class="active"></span>
                                    <span></span>
                                </div>
                                <p class="subtitle" style="color: #252525;">总点击
                                    <span>
                                         <a href="/pc/{$book_ctrl}/{$vo.param}">
                                            {$vo.clicks}
                                        </a>
                                    </span>
                                </p>
                                <p class="desc">{$vo.author_name}</p>
                                <div class="tag">
                                    {volist name="vo.taglist" id="tag"}
                                    <a href="/pc/{$booklist_act}/{$tag}" target="_blank">{$tag}</a>
                                    {/volist}
                                </div>
                            </div>
                        </li>
                        {/volist}
                    </ul>
                </div>

            </div>
        </div>
    </div>
</div>

<section class="box container overflow-Show">
    <header class="box-header"><i class="icon icon-cat"></i>
        <h2>热门分类</h2>
        <ul class="cat-tabs js-tabs">
            {volist name="tags" id="vo"}
            {in name="$vo.id" value="1,2,3"} <!-- value里的数字是后台分类ID，填哪几个数字就展示哪几个分类，必须和下面一致 -->
            <li><a onclick="switchTag(this)" class="{$i == 1 ? 'active' : ''}" data-val="{$i}">{$vo.tag_name}</a></li>
            {/in}
            {/volist}
        </ul>
        <div class="pull-right">
            <a class="more" href="/pc/{$booklist_act}?end=1">更多<i class="icon icon-arrow"></i></a>
        </div>
    </header>
    <div class="box-body">
        <section class="box-con-8n3">
            <div class="box-8n3-pane js_box_pane active">
                {volist name="catelist" id="cateItem" key="k"}
                {in name="$cateItem.tag.id" value="1,2,3"} <!-- value里的数字是后台分类ID，填哪几个数字就展示哪几个分类，必须和上面一致 -->
                <ul class="mh-list col7 switch-books" style="display: {$k == 1? 'block' : 'none'};" data-val="{$k}">
                    {volist name="cateItem.books" id="vo" length="14"}
                    <li>
                        <div class="mh-item">
                            <a href="/pc/{$book_ctrl}/{$vo.param}">
                                <p class="mh-cover " style="background-image: url({$vo.cover_url})"></p>
                            </a>


                            <div class="mh-item-detali">
                                <h2 class="title">
                                    <a href="/pc/{$book_ctrl}/{$vo.param}">
                                        {$vo.book_name}
                                    </a>

                                </h2>
                                <p class="zl"><span>评分:</span><span class="mh-star-line star-4"></span></p>
                                <p class="chapter">
                                    {$vo.summary}
                                </p>
                            </div>
                        </div>
                    </li>
                    {/volist}
                </ul>
                {/in}
                {/volist}
            </div>
        </section>
    </div>
    <footer></footer>
</section>
<script>
    function switchTag(obj){
        var i = $(obj).attr('data-val');
        console.log(i);
        $('.switch-books').each(function(index,el){
            if($(el).attr('data-val') == i) {
                $(el).show();
            } else {
                $(el).hide();
            }
        })
        $(obj).addClass('active').parent().siblings().children('a').removeClass('active');
        console.log( $(obj));
    }
</script>

<!-- 热门排行 -->
<div class="container">
    <div class="index-rank">
        <div class="index-rank-title">新书榜<a href="/pc/{$rank_ctrl}" class="more">更多</a></div>
        <ul class="index-rank-list">
            {volist name="newest" id="vo" key="k" offset="0" length="4"}
            <li>
                <div class="cover">
                    <a href="/pc/{$book_ctrl}/{$vo.param}">
                        <img src="{$vo.cover_url}" alt="{$vo.book_name}">
                    </a>

                </div>
                <div class="sign"><span class="top-{$k}">{$k}</span></div>
                <div class="info">
                    <p class="title">
                        <a href="/pc/{$book_ctrl}/{$vo.param}">
                            {$vo.book_name}
                        </a>

                    </p>
                    <p class="subtitle">{$vo.summary|subtext=15}</p>
                </div>
            </li>
            {/volist}
        </ul>
    </div>
    <div class="index-rank">
        <div class="index-rank-title">点击榜<a href="/pc/{$rank_ctrl}" class="more">更多</a></div>
        <ul class="index-rank-list">
            {volist name="hot" id="vo" key="k" offset="0" length="4"}
            <li>
                <div class="cover">
                    <a href="/pc/{$book_ctrl}/{$vo.param}">
                        <img src="{$vo.cover_url}" alt="{$vo.book_name}">
                    </a>

                </div>
                <div class="sign"><span class="top-{$k}">{$k}</span></div>
                <div class="info">
                    <p class="title">
                        <a href="/pc/{$book_ctrl}/{$vo.param}">
                            {$vo.book_name}
                        </a>

                    </p>
                    <p class="subtitle">{$vo.summary|subtext=15}</p>
                </div>
            </li>
            {/volist}
        </ul>
    </div>
    <div class="index-rank">
        <div class="index-rank-title">推荐榜<a href="/pc/{$rank_ctrl}" class="more">更多</a></div>
        <ul class="index-rank-list">
            {volist name="tops" id="vo" key="k" offset="0" length="4"}
            <li>
                <div class="cover">
                    <a href="/pc/{$book_ctrl}/{$vo.param}">
                        <img src="{$vo.cover_url}" alt="{$vo.book_name}">
                    </a>

                </div>
                <div class="sign"><span class="top-{$k}">{$k}</span></div>
                <div class="info">
                    <p class="title">
                        <a href="/pc/{$book_ctrl}/{$vo.param}">
                            {$vo.book_name}
                        </a>


                    </p>
                    <p class="subtitle">{$vo.summary|subtext=15}</p>
                </div>
            </li>
            {/volist}
        </ul>
    </div>
</div>


<section class="box container overflow-Show">
    <header class="box-header"><i class="icon icon-end"></i>
        <h2>完结优选</h2>
        <div class="pull-right">
            <a class="more" href="/pc/{$booklist_act}?end=1">更多<i class="icon icon-arrow"></i></a></div>
    </header>
    <div class="box-body">
        <section class="box-con-8n3">
            <div class="box-8n3-pane js_box_pane active">
                <ul class="mh-list col7">
                    {volist name="ends" id="vo" length="14"}
                    <li>
                        <div class="mh-item">
                            <a href="/pc/{$book_ctrl}/{$vo.param}">
                                <p class="mh-cover " style="background-image: url({$vo.cover_url})"></p>
                            </a>


                            <div class="mh-item-detali">
                                <h2 class="title">
                                    <a href="/pc/{$book_ctrl}/{$vo.param}">
                                        {$vo.book_name}
                                    </a>
                                </h2>
                                <p class="zl"><span>评分:</span><span class="mh-star-line star-4"></span></p>
                                <p class="chapter">
                                    {$vo.summary}
                                </p>
                            </div>
                        </div>
                    </li>
                    {/volist}
                </ul>
            </div>
        </section>
    </div>
    <footer></footer>
</section>

<div class="index-friendship">
    <div class="container">
        <p class="title">友情链接</p>
        <ul class="index-friendship-list">
            {volist name="links" id="vo"}
            <li><a href="{$vo.url}" title="{$vo.name}" target="_blank">{$vo.name}</a></li>
            {/volist}
        </ul>
    </div>
</div>
<ul class="index-right-float" style="display: block;">
    <li><a href="javascript:void(0);"
           onclick="$('html,body').stop().animate({ scrollTop:$('.box-header').eq(0).offset().top-80},500);"
           class="active">最近<br>更新</a>
    </li>
    <li><a href="javascript:void(0);"
           onclick="$('html,body').stop().animate({ scrollTop:$('.index-title').eq(0).offset().top-80},500);"
           class="">热门<br>漫画</a>
    </li>
    <li><a href="javascript:void(0);"
           onclick="$('html,body').stop().animate({ scrollTop:$('.index-rank').eq(0).offset().top-80},500);"
           class="">排行<br>榜单</a>
    </li>
    <li><a href="javascript:void(0);"
           onclick="$('html,body').stop().animate({ scrollTop:$('.box-header').eq(1).offset().top-80},500);">完结<br>佳作</a>
    </li>
    <li><a href="javascript:void(0);" onclick="$('html,body').stop().animate({ scrollTop:0},500);"
           class="index-right-float-top"></a></li>
</ul>
<script type="text/javascript">
    $(function () {
        $(window).scroll(function () {
            var scrollTop = (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop) + 5;
            if (scrollTop < $('.box-header').eq(0).offset().top - 80) {
                $('.index-right-float li a').removeClass('active');
                $('.index-right-float li a').eq(0).addClass('active');
            } else if (scrollTop < $('.index-title').eq(0).offset().top - 80) {
                $('.index-right-float li a').removeClass('active');
                $('.index-right-float li a').eq(1).addClass('active');
            } else if (scrollTop < $('.index-rank').eq(0).offset().top - 80) {
                $('.index-right-float li a').removeClass('active');
                $('.index-right-float li a').eq(2).addClass('active');
            } else if (scrollTop < $('.box-header').eq(1).offset().top - 80) {
                $('.index-right-float li a').removeClass('active');
                $('.index-right-float li a').eq(5).addClass('active');
            } else {
                $('.index-right-float li a').removeClass('active');
                $('.index-right-float li a').eq(6).addClass('active');
            }
        });
    });
</script>
{/block}